package com.spm.utils;

import com.spm.dao.StudentGradeMapper;
import org.apache.ibatis.annotations.Param;

public class StudentGradeMapperUtil extends MybatisUtils{
    private StudentGradeMapper mapper = getSqlSession().getMapper(StudentGradeMapper.class);

    public int deleteChooseRecordBySidAndCnoAndTid(String sid, String cno,String tid){
        return mapper.deleteChooseRecordBySidAndCnoAndTid(sid,cno,tid);
    };

    public int insertRecord(String sid,String tid,String cno){
        return mapper.insertRecord(sid,tid,cno);
    }

    public int updateChooseState(String sid,String tid,String cno){
        return mapper.updateChooseState(sid,tid,cno);
    }

    public int updateDailyGrade(String sid,String tid,String cno, Integer dailygrade){
        return mapper.updateDailyGrade(sid, tid, cno, dailygrade);
    }

    public int updateFinalGrade(String sid,String tid,String cno,Integer finalgrade){
        return mapper.updateFinalGrade(sid, tid, cno, finalgrade);
    }
    public int updateTwoGrades(String sid,String tid,String cno,Integer dailygrade,Integer finalgrade){
        return mapper.updateTwoGrades(sid, tid, cno, dailygrade,finalgrade);
    }
}
